#ifndef IDROOTMENU_H_IIQUNXFFSZ
#define IDROOTMENU_H_IIQUNXFFSZ


#include "mcore/tools/ConstVar4MapTool.h"
#include "mcore/tools/setting/IdBtnToMapTool.h"

#define MenuId_None  NoneToggleValue

#define BootmRootStart  0
#define PopDlg4MainPage  1
#define PopDlg4MainPage_Yes  2
#define DisTorClicked 6

#define TopSubMenu  11
#define TopSubMenu_reqDlg  12

#define RootTreeMenu  -10
#define VisibleMapLayer  -12



#define WhiteSpace_Begin  0x990000
#define WhiteSpace_End  0x9a0000
#define Label_End  0x9a0200
#define WhiteSpace_M  0xfff

#define Label_Add           0x9a0101
#define Label_Update        0x9a0102
#define Label_LoadGeometry 0x9a0103
#define Label_DrawTool     0x9a0104
#define Label_ImportGpsVal 0x9a0105
#define Label_PickVertexOrEged 0x9a0106



#define IS_LabelBar(ID) ID > WhiteSpace_End && ID < Label_End
#define IS_WhiteSpaceBar(ID) ID > WhiteSpace_Begin && ID < WhiteSpace_End

#define Add_ID  -2001
#define Input_Count  -2002
#define CheckBox_CheckALL  -2003

#define ID_Test  -1002

#define Input_Float_dip  90
#define Input_eger_dip  70
#define Input_Width2_dip  120
#define Input_Width3_dip  140

#define Width_Left_icon  34

#define Width_CELL  32
#define Height_CELL  32
#define Width_ComboBox 42
#define Width_ComboBoxFlag 18
#define Height_ComboBoxFlag 12
#define WidthClick_ComboBox 8
#define RightClick_ComboBox 18

#define Height_TableItem  40

#define width_border_default 1.4f
#define width_border_defaultR2 1.6f

#define width_More_menu  8
#define width_More_btn  20
#define width_Checked_Tri  12
#define TextSize_Tool  12
#define TextSize_Icon_Tool  16

#define WhiteSpace_8_v  8
#define WhiteSpace_4_v  4
#define ComplexBox_w  54

#define Edittext_w  42
#define Edittext_w2  56
#define Edittext_w6  74
#define Edittext_w66  180
#define WorkSpace_SelectRegion_w  90
#define WorkSpace_WorkTable_w  48
#define WorkSpace_SelectRegion_s  "\ue661"
#define WorkSpace_WorkTable_s  "\ue62f"

#define RestoreFromDelete  2013
#define OnlyEdited_BtnId  2014
#define CheckBoxButton  2015

#define UserInfo  2101
// 图层显示开关
#define EnVisibleMapLayer  2102
// 指北针
#define Compass  2103
#define Setting  2106
// 足迹，轨迹
#define Trail_footmark  2107
// 数据同步(服务端)
#define DataSynchro  2021

#define LayerVisible_every  3
#define LayerVisible_vector2D  2
// 卫星影像图层
#define LayerVisible_image  1

#define Geom_Attr  100
// 申请编辑
#define EditTool_Request  101


#define Horizontal_Line_Seperate  200
#define Horizontal_Line_Seperate_Margin  8
#define Horizontal_Line_Seperate_Size  6
#define Horizontal_Line_Seperate_BorderWidth  0.4f
#define Horizontal_Line_Seperate_Color  0xffcdcdcdU



#define UpdateVertexByString    204
#define ArrayAddVertexByString  205
#define ArrayAddVertexByFile    206

#ifndef UpdateGPS_ByString
#define UpdateGPS_ByString  UpdateVertexByString
#endif

// 量角器，分度规
#define MapTool_Protractor  224

#define EditTool_RotateRect  225

#ifndef Pick_Target_Vertex
#define Pick_Target_Vertex  261
#define Pick_Target_Edge  262
#endif




#define Pos_ComboBox_None  0
#define Pos_ComboBox_Left  0x011
#define Pos_ComboBox_Right 0x013







#define EditTool_Normal  361
#define EditTool_Attribute  362
#define ScrachTool_Normal  363



#define ClipBrushType_Combox  299


#define Checkbox_Overlap  380
#define Checkbox_ShiftAxis  381

#define WorkSpace_SelectRegion  401
#define WorkSpace_WorkTable  402
#define Text_WordSpace  403
#define Text_Angle  405
#define Text_Value  406
#define Text_Name  407

#define VisibleGrid_BtnId  501

#define AddItemGrid_BtnId  601
#define EditGeom_BtnId  602
#define EditAttr_BtnId  603
#define DeleteItem_BtnId  604
#define CleanSelected_BtnId  605
#define Filter_where_BtnId  606
#define Roolback_Edited_BtnId  607

#define DeleteTableLocal_BtnId  610

#define filter_where_BtnId  612
#define savegrid2local_BtnId  613
#define loadgridfromlocal_BtnId  614
#define txbtn_deletetablelocal_BtnId  615
#define EraseItem_BtnId  616

#define AddPoint_BtnId  620
#define AddLine_BtnId  621
#define AddPolygon_BtnId  622
#define Identify_BtnId  626
#define OrderBy_BtnId  627

#define ViewClickFlag_Go               1
#define ViewClickFlag_RepaintRoot     2

#define FileSave_BtnId  630
#define Goback_BarBtnId  631
#define Apply_Commit_BtnId  632
#define Goback_WinBtnId  636
#define SaveClose_BtnId  637
#define ServiceGit_BtnId  640
#define Upload_BtnId  641
#define Download_BtnId  642

#define MapTool_SelectMulti  701
#define MapTool_LockShape  702
#define MapTool_UnLockShape  703
#define MapTool_SnapShape  706
#define MapTool_SnapAxis  707

#define LocationCombox  709
// 我的足迹/位置/标记 常用位置
#define LocationByFootmark  711
#define LocationByRoad  712
/* 居民小区定位 */
#define Locaion_ByResident  713
#define Gps_by_phone  715
#define Gps_by_input  716

#define Option_EnSnapGraphic  724
#define Option_MakeHole  725
#define Option_VisibleVertexIndex  726


#define CleanTopLayer  760
#define EditLayerOther  761
#define ClipGeometry  762
#define ClipGeometry_Radio  763
#define ClipGeometry_Inter  764
#define ClipGeometry_Remove  765

#define PipeMark_Selected  800
#define PipeMark_public  801
#define PipeMark_symbo  802

#define MapTool_FolderOPen  1104



#define ID_BTN_Yes  1120
#define ID_BTN_No  1121
#define ID_BTN_Cancel  1122

#define ID_Key_Ctrl  1130
#define ID_Key_Shift  1131

#define BarWinow_Minimize  1201
#define BarWinow_Close     1202

#define Data_ToVersionServ  1403

#define NoLaelFinded  0xe6d9U

#define IS_Close_Tab(ID) (BarWinow_Close == ID || Goback_BarBtnId == ID)

#define IS_ComboBox(ID) (IdentifyPick_ComboBox == ID  \
|| IdentifyLoad_ComboBox == ID || EditTool_Combox == ID   \
|| ClipBrushType_Combox ==ID || AffineTool_Combox ==ID || LocationCombox ==ID)

#define IS_RadioBox(ID)  (ClipGeometry_Radio == ID)


#define LocationByRoad_Code        0xe782U
#define Locaion_ByResident_Code    0xec58U
#define LocationByFootmark_Code      0xe811U

#define Gps_by_input_Code          0xe830U

#endif // IDROOTMENU_H
